Jx().$package("jet.main", function(J) {
    var $D = J.dom,
    $E = J.event,
    $S = J.string,
    $A = J.array;
    $H = J.http;

    this.init = function() {
	     var dictionary=$D.id("dictionary");

	    $E.on($D.id("load-html"), "click", function() {
	    	$H.ajax("a.html", {onSuccess:function(data) {
	    		alert("load success");
	    		dictionary.innerHtml = data.responeText;
	    	}});
/*
			$("#dictionary").load("a.html", {}, function() {
			});
*/
			return false;    	
	    });
/*
	    $E.on($D.id("load-json"), "click", function() {
			$.getJSON("b.json", function(data) {
				$("#dictionary").empty();
				$.each(data, function(entryindex, entry) {
					var html = '<div class="entry">';
					html += '<h3 class="term">'+entry['term']+'</h3>';
					html += '<div class="part">'+entry['part']+'</div>';
					html += '<div class="definition">'+entry['definition'];
					if (entry['quote']) {
						html += '<div class="quote">';
						$.each(entry['quote'], function(lineIndex, line) {
							html += '<div class="quote-line">' + line + '</div>';
						});
						if (entry['author']) {
							html += '<div class="quote-author">' + entry['author'] + '</div>';
						};
						html += '</div>';
					};
					html += '</div>';
					html += '</div>';
					$('#dictionary').append(html);
				});
			});

			return false;    	
	    });

	    $E.on($D.id("load-js"), "click", function() {
			$.getScript('c.js');
	    });   
	    */	
    }

    this.a = 1;
});

qplus.onReady(function (qp) {
	alert("qplus vm ready");

	jet.main.init();
});